package com.atkxp.dto.req;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author longhunpomie - 蒯兴鹏
 * @declaration
 * @email 3314028177@qq.com
 * @create 2025/4/8-15:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class UploadScratchPaperDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    private String desc;

    private List<TempScratchPaperDTO.Files> files;

    private String category;

    private String categoryName;

    private String name;

    private String algorithmName;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Accessors(chain = true)
    public static class Files implements Serializable{
        private static final long serialVersionUID = 2L;

        private TempScratchPaperDTO.Files.File file;

        private String name;

        private Integer fileOrder;
        @Data
        @AllArgsConstructor
        @NoArgsConstructor
        @Accessors(chain = true)
        public static class File implements Serializable{
            private static final long serialVersionUID = 3L;

            private String code;

            private String data;

            private String desc;

            private String template;
        }
    }
}
